package com.itheima.youdianda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.youdianda.common.R;
import com.itheima.youdianda.pojo.YddAdvimg;

public interface YddAdvimgService extends IService<YddAdvimg> {
    /**
     * 广告图详情
     *
     * @return
     */
    R rowInfo(Integer id);

    /**
     * 广告图列表分页
     *
     * @param page
     * @param limit
     * @param advimgpos
     * @param advimgdesc
     * @return
     */
    R yddAdvimgList(Integer page, Integer limit, String advimgpos, String advimgdesc);

    /**
     * 广告图添加
     *
     * @param yddAdvimg
     * @return
     */
    R yddAdvimgAdd(YddAdvimg yddAdvimg);

    /**
     * 广告图修改
     *
     * @param yddAdvimg
     * @return
     */
    R yddAdvimgUpdate(YddAdvimg yddAdvimg);

    /**
     * 广告图删除
     *
     * @param id
     * @return
     */
    R del(Integer id);
}
